package com.dick.base.parameter;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

@Data
public class CustomerParameter {

    private Long id;

    /**
     * 客户全称，长度限制64
     */
    @NotEmpty(message = "请输入客户名称")
    @Size(max = 64, message = "客户名称长度不能超过64字符")
    private String name;
    /**
     * 客户简称，长度限制8
     */
    @NotEmpty(message = "请输入客户简称")
    @Size(max = 8, message = "客户简称长度不能超过8字符")
    private String nickname;
    /**
     * 地址，长度限制64
     */
    @Size(max = 64, message = "客户地址长度不能超过64字符")
    private String address;
}
